import request from '@/utils/request'

// 车辆列表
export const getCarList = (params) => {
  return request({
    method: 'get',
    url: '/data/car/list',
    params: params,
  })
}
// 新增车辆
export const carAdd = (params) => {
  return request({
    method: 'post',
    url: '/data/car/add',
    data: params,
  })
}
// 更新车辆
export const carUpdate = (params) => {
  return request({
    method: 'put',
    url: `/data/car/update`,
    data: params,
  })
}
// 删除车辆
export const carDelete = (params) => {
  return request({
    method: 'delete',
    url: '/data/car/delete',
    params: params,
  })
}
// 车辆详情
export const carDetail = (params) => {
  return request({
    method: 'get',
    url: '/data/car/get',
    params: params,
  })
}
